package com.ruoyi.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("llm_faq_downvote_detail")
public class LlmFaqDownvoteDetail {

    @Schema(name = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(name = "问题ID")
    @TableField("faq_id")
    private String faqId;

    @Schema(name = "点踩用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(name = "对话ID")
    @TableField("conversation_id")
    private String conversationId;

    @Schema(name = "消息id")
    @TableField("msg_id")
    private String msgId;

    @Schema(name = "问题")
    @TableField("problem")
    private String problem;

    @Schema(name = "回答")
    @TableField("answer")
    private String answer;

    @Schema(name = "踩点时间")
    @TableField("downvote_time")
    private LocalDateTime downvoteTime;

    @Schema(name = "踩点原因(可选)")
    @TableField("reason")
    private String reason;

    @Schema(name = "备注(可选)")
    @TableField("remark")
    private String remark;

    @Schema(name = "踩点类型1.赞2.踩")
    @TableField("type")
    private Integer type;

    @Schema(name = "人员姓名")
    @TableField("user_name")
    private String userName;
}
